package com.spark.invoicings.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;

import lombok.Data;

/**
 * 入库明细表
 * 
 * @author sunyan
 * @email sunyan@gmail.com
 * @date 2024-06-13 11:16:27
 */
@Data
@TableName("t_inbound_detail")
public class InboundDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 入库明细id
	 */
	@TableId(type = IdType.AUTO)
	private Integer inboundDetailId;
	/**
	 * 所属入库单id
	 */
	private Integer inboundOrderId;
	/**
	 * 商品id
	 */
	private Integer productId;
	/**
	 * 入库数量
	 */
	private Integer inboundQuantity;
	/**
	 * 入库单价
	 */
	private double inboundPrice;
	/**
	 * 备注
	 */
	private String notes;
	/**
	 * 采购明细id
	 */
	private Integer purchaseDetailId;
	/**
	 * 订单明细id
	 */
	private Integer orderDetailId;
	/**
	 * 到货明细id
	 */
	private Integer receiptDetailId;
	/**
	 * 退货明细id
	 */
	private Integer returnDetailId;
	/**
	 * 商品关联对象
	 * */
	@TableField(exist = false)
	private Product product;

	/**
	 * 入库单关联对象
	 * */
	@TableField(exist = false)
	private WarehouseReceipt warehouseReceipt;
	@TableField(exist = false)
	private OrderDetail orderDetail;
    @TableField(exist = false)
	private ReturnDetail returnDetail;
	@TableField(exist = false)
    private ReceiptDetail receiptDetail;
	@TableField(exist = false)
	private PurchaseDetail purchaseDetail;

	public Integer getInboundDetailId() {
		return inboundDetailId;
	}

	public void setInboundDetailId(Integer inboundDetailId) {
		this.inboundDetailId = inboundDetailId;
	}

	public Integer getInboundOrderId() {
		return inboundOrderId;
	}

	public void setInboundOrderId(Integer inboundOrderId) {
		this.inboundOrderId = inboundOrderId;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public Integer getInboundQuantity() {
		return inboundQuantity;
	}

	public void setInboundQuantity(Integer inboundQuantity) {
		this.inboundQuantity = inboundQuantity;
	}

	public double getInboundPrice() {
		return inboundPrice;
	}

	public void setInboundPrice(double inboundPrice) {
		this.inboundPrice = inboundPrice;
	}

	public String getNotes() {
		return notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	public Integer getPurchaseDetailId() {
		return purchaseDetailId;
	}

	public void setPurchaseDetailId(Integer purchaseDetailId) {
		this.purchaseDetailId = purchaseDetailId;
	}

	public Integer getOrderDetailId() {
		return orderDetailId;
	}

	public void setOrderDetailId(Integer orderDetailId) {
		this.orderDetailId = orderDetailId;
	}

	public Integer getReceiptDetailId() {
		return receiptDetailId;
	}

	public void setReceiptDetailId(Integer receiptDetailId) {
		this.receiptDetailId = receiptDetailId;
	}

	public Integer getReturnDetailId() {
		return returnDetailId;
	}

	public void setReturnDetailId(Integer returnDetailId) {
		this.returnDetailId = returnDetailId;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public WarehouseReceipt getWarehouseReceipt() {
		return warehouseReceipt;
	}

	public void setWarehouseReceipt(WarehouseReceipt warehouseReceipt) {
		this.warehouseReceipt = warehouseReceipt;
	}


	public OrderDetail getOrderDetail() {
		return orderDetail;
	}

	public void setOrderDetail(OrderDetail orderDetail) {
		this.orderDetail = orderDetail;
	}

	public ReturnDetail getReturnDetail() {
		return returnDetail;
	}

	public void setReturnDetail(ReturnDetail returnDetail) {
		this.returnDetail = returnDetail;
	}

	public ReceiptDetail getReceiptDetail() {
		return receiptDetail;
	}

	public void setReceiptDetail(ReceiptDetail receiptDetail) {
		this.receiptDetail = receiptDetail;
	}

	public PurchaseDetail getPurchaseDetail() {
		return purchaseDetail;
	}

	public void setPurchaseDetail(PurchaseDetail purchaseDetail) {
		this.purchaseDetail = purchaseDetail;
	}
}
